package com.ssh.service.impl;

import com.ssh.dao.LoginDao;
import com.ssh.dao.impl.LoginDaoImpl;
import com.ssh.service.LoginService;

public class LoginServiceImpl implements LoginService{
	
	private LoginDao loginDao = new LoginDaoImpl();
	@Override
	public void login(String name, String password) {
		int result = loginDao.login(name, password);
		if (result != 1) {
			throw new RuntimeException("用户名或密码失败!");
		}
	}

}
